package org.sixtynine.stock.api.summary;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

/**
 * <p>
 * Java class for anonymous complex type.
 * 
 * <p>
 * The following schema fragment specifies the expected content contained within
 * this class.
 * 
 * <pre>
 * &lt;complexType>
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="summaries">
 *           &lt;complexType>
 *             &lt;complexContent>
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 &lt;sequence>
 *                   &lt;element name="summary" maxOccurs="unbounded" minOccurs="0">
 *                     &lt;complexType>
 *                       &lt;complexContent>
 *                         &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                           &lt;sequence>
 *                             &lt;element name="symbol" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                             &lt;element name="trade-volume" type="{http://www.w3.org/2001/XMLSchema}float"/>
 *                             &lt;element name="share-volume" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *                             &lt;element name="turnover" type="{http://www.w3.org/2001/XMLSchema}float"/>
 *                             &lt;element name="last-traded-price" type="{http://www.w3.org/2001/XMLSchema}float"/>
 *                             &lt;element name="closing-price" type="{http://www.w3.org/2001/XMLSchema}float"/>
 *                             &lt;element name="previous-close" type="{http://www.w3.org/2001/XMLSchema}float"/>
 *                             &lt;element name="change" type="{http://www.w3.org/2001/XMLSchema}float"/>
 *                             &lt;element name="percentage-change" type="{http://www.w3.org/2001/XMLSchema}float"/>
 *                           &lt;/sequence>
 *                         &lt;/restriction>
 *                       &lt;/complexContent>
 *                     &lt;/complexType>
 *                   &lt;/element>
 *                 &lt;/sequence>
 *               &lt;/restriction>
 *             &lt;/complexContent>
 *           &lt;/complexType>
 *         &lt;/element>
 *       &lt;/sequence>
 *       &lt;attribute name="response" type="{http://www.w3.org/2001/XMLSchema}string" />
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = { "summaries" })
@XmlRootElement(name = "cse")
public class Cse {

	@XmlElement(required = true)
	protected Cse.Summaries summaries;
	@XmlAttribute(name = "response")
	protected String response;

	/**
	 * Gets the value of the summaries property.
	 * 
	 * @return possible object is {@link Cse.Summaries }
	 * 
	 */
	public Cse.Summaries getSummaries() {
		return summaries;
	}

	/**
	 * Sets the value of the summaries property.
	 * 
	 * @param value
	 *            allowed object is {@link Cse.Summaries }
	 * 
	 */
	public void setSummaries(Cse.Summaries value) {
		this.summaries = value;
	}

	/**
	 * Gets the value of the response property.
	 * 
	 * @return possible object is {@link String }
	 * 
	 */
	public String getResponse() {
		return response;
	}

	/**
	 * Sets the value of the response property.
	 * 
	 * @param value
	 *            allowed object is {@link String }
	 * 
	 */
	public void setResponse(String value) {
		this.response = value;
	}

	/**
	 * <p>
	 * Java class for anonymous complex type.
	 * 
	 * <p>
	 * The following schema fragment specifies the expected content contained
	 * within this class.
	 * 
	 * <pre>
	 * &lt;complexType>
	 *   &lt;complexContent>
	 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
	 *       &lt;sequence>
	 *         &lt;element name="summary" maxOccurs="unbounded" minOccurs="0">
	 *           &lt;complexType>
	 *             &lt;complexContent>
	 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
	 *                 &lt;sequence>
	 *                   &lt;element name="symbol" type="{http://www.w3.org/2001/XMLSchema}string"/>
	 *                   &lt;element name="trade-volume" type="{http://www.w3.org/2001/XMLSchema}float"/>
	 *                   &lt;element name="share-volume" type="{http://www.w3.org/2001/XMLSchema}int"/>
	 *                   &lt;element name="turnover" type="{http://www.w3.org/2001/XMLSchema}float"/>
	 *                   &lt;element name="last-traded-price" type="{http://www.w3.org/2001/XMLSchema}float"/>
	 *                   &lt;element name="closing-price" type="{http://www.w3.org/2001/XMLSchema}float"/>
	 *                   &lt;element name="previous-close" type="{http://www.w3.org/2001/XMLSchema}float"/>
	 *                   &lt;element name="change" type="{http://www.w3.org/2001/XMLSchema}float"/>
	 *                   &lt;element name="percentage-change" type="{http://www.w3.org/2001/XMLSchema}float"/>
	 *                 &lt;/sequence>
	 *               &lt;/restriction>
	 *             &lt;/complexContent>
	 *           &lt;/complexType>
	 *         &lt;/element>
	 *       &lt;/sequence>
	 *     &lt;/restriction>
	 *   &lt;/complexContent>
	 * &lt;/complexType>
	 * </pre>
	 * 
	 * 
	 */
	@XmlAccessorType(XmlAccessType.FIELD)
	@XmlType(name = "", propOrder = { "summary" })
	public static class Summaries {

		protected List<Cse.Summaries.Summary> summary;

		/**
		 * Gets the value of the summary property.
		 * 
		 * <p>
		 * This accessor method returns a reference to the live list, not a
		 * snapshot. Therefore any modification you make to the returned list
		 * will be present inside the JAXB object. This is why there is not a
		 * <CODE>set</CODE> method for the summary property.
		 * 
		 * <p>
		 * For example, to add a new item, do as follows:
		 * 
		 * <pre>
		 * getSummary().add(newItem);
		 * </pre>
		 * 
		 * 
		 * <p>
		 * Objects of the following type(s) are allowed in the list
		 * {@link Cse.Summaries.Summary }
		 * 
		 * 
		 */
		public List<Cse.Summaries.Summary> getSummary() {
			if (summary == null) {
				summary = new ArrayList<Cse.Summaries.Summary>();
			}
			return this.summary;
		}

		/**
		 * <p>
		 * Java class for anonymous complex type.
		 * 
		 * <p>
		 * The following schema fragment specifies the expected content
		 * contained within this class.
		 * 
		 * <pre>
		 * &lt;complexType>
		 *   &lt;complexContent>
		 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
		 *       &lt;sequence>
		 *         &lt;element name="symbol" type="{http://www.w3.org/2001/XMLSchema}string"/>
		 *         &lt;element name="trade-volume" type="{http://www.w3.org/2001/XMLSchema}float"/>
		 *         &lt;element name="share-volume" type="{http://www.w3.org/2001/XMLSchema}int"/>
		 *         &lt;element name="turnover" type="{http://www.w3.org/2001/XMLSchema}float"/>
		 *         &lt;element name="last-traded-price" type="{http://www.w3.org/2001/XMLSchema}float"/>
		 *         &lt;element name="closing-price" type="{http://www.w3.org/2001/XMLSchema}float"/>
		 *         &lt;element name="previous-close" type="{http://www.w3.org/2001/XMLSchema}float"/>
		 *         &lt;element name="change" type="{http://www.w3.org/2001/XMLSchema}float"/>
		 *         &lt;element name="percentage-change" type="{http://www.w3.org/2001/XMLSchema}float"/>
		 *       &lt;/sequence>
		 *     &lt;/restriction>
		 *   &lt;/complexContent>
		 * &lt;/complexType>
		 * </pre>
		 * 
		 * 
		 */
		@XmlAccessorType(XmlAccessType.FIELD)
		@XmlType(name = "", propOrder = { "symbol", "tradeVolume",
				"shareVolume", "turnover", "lastTradedPrice", "closingPrice",
				"previousClose", "change", "percentageChange" })
		public static class Summary {

			@XmlElement(required = true)
			protected String symbol;
			@XmlElement(name = "trade-volume")
			protected float tradeVolume;
			@XmlElement(name = "share-volume")
			protected int shareVolume;
			protected float turnover;
			@XmlElement(name = "last-traded-price")
			protected float lastTradedPrice;
			@XmlElement(name = "closing-price")
			protected float closingPrice;
			@XmlElement(name = "previous-close")
			protected float previousClose;
			protected float change;
			@XmlElement(name = "percentage-change")
			protected float percentageChange;

			/**
			 * Gets the value of the symbol property.
			 * 
			 * @return possible object is {@link String }
			 * 
			 */
			public String getSymbol() {
				return symbol;
			}

			/**
			 * Sets the value of the symbol property.
			 * 
			 * @param value
			 *            allowed object is {@link String }
			 * 
			 */
			public void setSymbol(String value) {
				this.symbol = value;
			}

			/**
			 * Gets the value of the tradeVolume property.
			 * 
			 */
			public float getTradeVolume() {
				return tradeVolume;
			}

			/**
			 * Sets the value of the tradeVolume property.
			 * 
			 */
			public void setTradeVolume(float value) {
				this.tradeVolume = value;
			}

			/**
			 * Gets the value of the shareVolume property.
			 * 
			 */
			public int getShareVolume() {
				return shareVolume;
			}

			/**
			 * Sets the value of the shareVolume property.
			 * 
			 */
			public void setShareVolume(int value) {
				this.shareVolume = value;
			}

			/**
			 * Gets the value of the turnover property.
			 * 
			 */
			public float getTurnover() {
				return turnover;
			}

			/**
			 * Sets the value of the turnover property.
			 * 
			 */
			public void setTurnover(float value) {
				this.turnover = value;
			}

			/**
			 * Gets the value of the lastTradedPrice property.
			 * 
			 */
			public float getLastTradedPrice() {
				return lastTradedPrice;
			}

			/**
			 * Sets the value of the lastTradedPrice property.
			 * 
			 */
			public void setLastTradedPrice(float value) {
				this.lastTradedPrice = value;
			}

			/**
			 * Gets the value of the closingPrice property.
			 * 
			 */
			public float getClosingPrice() {
				return closingPrice;
			}

			/**
			 * Sets the value of the closingPrice property.
			 * 
			 */
			public void setClosingPrice(float value) {
				this.closingPrice = value;
			}

			/**
			 * Gets the value of the previousClose property.
			 * 
			 */
			public float getPreviousClose() {
				return previousClose;
			}

			/**
			 * Sets the value of the previousClose property.
			 * 
			 */
			public void setPreviousClose(float value) {
				this.previousClose = value;
			}

			/**
			 * Gets the value of the change property.
			 * 
			 */
			public float getChange() {
				return change;
			}

			/**
			 * Sets the value of the change property.
			 * 
			 */
			public void setChange(float value) {
				this.change = value;
			}

			/**
			 * Gets the value of the percentageChange property.
			 * 
			 */
			public float getPercentageChange() {
				return percentageChange;
			}

			/**
			 * Sets the value of the percentageChange property.
			 * 
			 */
			public void setPercentageChange(float value) {
				this.percentageChange = value;
			}

		}

	}

}
